# 查找源文件
file(GLOB_RECURSE SOURCES "src/*.cpp")

# 创建库
add_library(moduleB STATIC ${SOURCES})

# 设置包含目录
target_include_directories(moduleB PUBLIC inc)
target_include_directories(moduleB PUBLIC ${PROJECT_SOURCE_DIR}/src/modules/moduleA/inc)

# 链接依赖库
target_link_libraries(moduleB moduleA) 